package com.mycase.im.boot.config;

import com.mycase.im.boot.websocket.WebSocketServerEndpoint;
import com.mycase.im.boot.websocket.pattern.MessageStrategy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

import java.util.List;

/**
 * 基于 原生注解 方式的 WebSocket
 * @Author ZhuHJay
 * @Date 2021/8/1 18:44
 */
@Configuration
@EnableWebSocket
public class WebSocketConfiguration {

    @Bean
    public ServerEndpointExporter serverEndpoint() {
        return new ServerEndpointExporter();
    }

}